package com.icss.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.icss.dao.CartDao;
import com.icss.model.Cart;
import com.icss.model.Item;
import com.icss.service.CartService;
@Service
public class CartServiceImpl implements CartService{

	@Autowired
	CartDao cd;

	@Override
	public boolean addcart(Cart cart) {
		return cd.addcart(cart)>0?true:false;
	}

	@Override
	public List<Item> findByuserId(int id) {
		return cd.findByuserId(id);
	}
}
